package com.xiaofengstu.mcams.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author fengzeng
 * @since 2022-05-07
 */
@Data
@TableName("workflow")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Workflow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "workflow_id",type = IdType.AUTO)
    private Integer workflowId;

    @TableField("workflow_type")
    private String workflowType;

    /**
     * workflow id
     */
    @TableField("last_workflow")
    private Integer lastWorkflow;

    /**
     * user id
     */
    @TableField("create_by")
    private Integer createBy;

    /**
     * user id
     */
    @TableField("approve_by")
    private Integer approveBy;

    @TableField("status")
    private String status;

    @TableField("apply_reason")
    private String applyReason;

    @TableField("reject_reason")
    private String rejectReason;

    @TableField("asset_id")
    private Integer assetId;

    @TableField(exist = false)
    private String assetName;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private Integer value;

}
